import {StrictMode} from 'react'
import {createRoot} from 'react-dom/client'
import "./index.css"
// 全局样式
import "@/assets/global.scss"
import App from './App.tsx'
import {BrowserRouter} from "react-router-dom";
import {ThemeProvider} from "@/contexts/ThemeContext.tsx";
import ThemeConsumer from "@/components/theme/ThemeConsumer.tsx";



createRoot(document.getElementById('root')!).render(
    <StrictMode>
        <ThemeProvider>
            <ThemeConsumer>
                <BrowserRouter>
                    <App/>
                </BrowserRouter>
            </ThemeConsumer>
        </ThemeProvider>
    </StrictMode>
)
